﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using DG.Tweening;
public class CameraFollow : MonoBehaviour {
    public float CharMaxY;
    public float FixedHeight = 0.67f;
    public CharatorMono CMono;
    bool IsTweening = false;
	// Use this for initialization
	void Start () {
		
	}
	
	// Update is called once per frame
	 void LateUpdate () {
        if (CMono.MaxY - transform.position.y > FixedHeight)
        {
            transform.position = new Vector3(0, CMono.MaxY - FixedHeight,transform.position.z);
        }
	}
}
